package yf.mall.enums;

import lombok.Getter;


/**
 *
 * 
 *
 * @date Sat Sep 28 17:53:11 CST 2019
 */
@Getter
public enum MallOrderBusTypeEnum {


                   BUY(0,"进货")
                                    ,


                   SEND(1,"调配")
                                    ,


                   BACK(2,"退回"),


                  RETURN(3,"还货"),

                  AUTO_BUY(4,"自动进货");


        int index;
        String value;

    MallOrderBusTypeEnum(int index,String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return MallOrderBusTypeEnum.values()[idx].getValue();
    }

}
